import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_ODM: AppRouteRecordRaw = {
  path: '/deco-odm',
  name: 'DecoOdm',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '订单中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-odm-material',
      name: 'DecoOdmMaterial',
      component: () => import('@/views/deco/odm/material/list/index.vue'),
      meta: {
        locale: '材料订单',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-odm-survey',
      name: 'DecoOdmSurvey',
      component: () => import('@/views/deco/odm/survey/list/index.vue'),
      meta: {
        locale: '测量订单',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-odm-carriage',
      name: 'DecoOdmCarriage',
      component: () => import('@/views/deco/odm/carriage/list/index.vue'),
      meta: {
        locale: '发货订单',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_ODM;
